package cn.iune.erp.accounting;

import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IAccountCaptionDao {

	public void insert(AccountCaption ac);
	
	public void delete(String fID);

	public AccountCaption update(AccountCaption ac);

	public List<AccountCaption> getAll();
	
	public AccountCaption getByID(String fID);

	public AccountCaption getByNo(String captionNo, String enterpriseNo);
	
	public int getRootCount();

	public List<AccountCaption> getRoots(String enterpriseNo);

	public int getChildCount(String fParent);

	public List<AccountCaption> getChilds(String fParent);

	List<AccountCaption> getChildren(String fParent);

	JSONObject query(JSONObject data) throws SQLException;

	JSONObject create(JSONObject data);

	List<AccountCaption> getList(String enterpriseNo);

//	public List<String> getRootIDs(String enterpriseNo);
	
//	public List<String> getChildIDs(String fParent);

}
